package com.qzimp.fujiancuo.service.impl;

import com.mybatisflex.spring.service.impl.ServiceImpl;
import com.qzimp.fujiancuo.entity.Enterprise;
import com.qzimp.fujiancuo.entity.dto.EnterpriseEventDTO;
import com.qzimp.fujiancuo.mapper.EnterpriseMapper;
import com.qzimp.fujiancuo.service.EnterpriseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *  服务层实现。
 *
 * @author 吴宗波
 * @since 2024-11-21
 */
@Service
public class EnterpriseServiceImpl extends ServiceImpl<EnterpriseMapper, Enterprise> implements EnterpriseService {
    @Autowired
    private EnterpriseMapper enterpriseEventMapper;
    //查询企业发布的所有活动
    @Override
    public List<EnterpriseEventDTO> getEnterpriseEventsByCuoId(Integer cuoId) {
        return enterpriseEventMapper.selectEnterpriseEventsByCuoId(cuoId);
    }
}
